package org.example.myleet.p851;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[5,5,2,5,4,5,6,7]".equals(JsonUtils.toJson(solution.loudAndRich(Parser.parse("[[1,0],[2,1],[3,1],[3,7],[4,3],[5,3],[6,3]]"), new int[]{3,2,5,4,6,1,7,0}))));
        Assert.isTrue("[0]".equals(JsonUtils.toJson(solution.loudAndRich(Parser.parse("[]"), new int[]{0}))));
    }
}
